import Mock from 'mockjs';
export default [
  {
    type: 'post',
    url: '/host/cloud/trafficIncident/history',
    response: () => {
      return Mock.mock({
        "retCode": '0000_0',
        "retMessage": '执行成功',
        "data|20-30": [
          {
            "id|+1": 0,
            "createTime": '@datetime("yyyy-MM-dd HH:mm:ss")',
            "address|+1": ['北京西路郁金香路路口', '石象路南段150米处', '中山大道与团结大道交叉口', '友谊路中段', '玄武大道90号北侧50米', '花园路78号', '黄曹路8号', '红山南路和红山路交接处', '华跃路和沿河路路口'],
            "type|1": ['异常路况', '异常车辆', '恶劣天气'],
            "description|10-20": 'x',
          }
        ]
      })
    }
  },
  {
    type: 'post',
    url: '/host/cloud/trafficIncident/type',
    response: () => {
      return Mock.mock({
        "retCode": '0000_0',
        "retMessage": '执行成功',
        "data|3": [
          {
            "type|+1": ['异常路况', '异常车辆', '恶劣天气'],
            "value|10-50": 10
          }
        ]
      })
    }
  },
  {
    type: 'post',
    url: '/host/cloud/trafficIncident/area',
    response: () => {
      return Mock.mock({
        "retCode": '0000_0',
        "retMessage": '执行成功',
        "data|5": [
          {
            "area|+1": ['亦庄', '太和桥', '南京', '苏州', '上海'],
            "value|1-100": 100
          }
        ]
      })
    }
  },
  {
    type: 'post',
    url: '/host/cloud/trafficIncident/carType',
    response: () => {
      return Mock.mock({
        "retCode": '0000_0',
        "retMessage": '执行成功',
        "data|24": [
          {
            "type|+1": ['轿车', '客车', '半挂车', '越野车', '专用汽车', '载货汽车', '牵引车', '自卸汽车'],
            "value|10-100": 100
          }
        ]
      })
    }
  },
  {
    type: 'post',
    url: '/host/cloud/trafficIncident/weather',
    response: () => {
      return Mock.mock({
        "retCode": '0000_0',
        "retMessage": '执行成功',
        "data|24": [
          {
            "type|+1": ['晴', '多云', '阴', '阵雨', '雷阵雨', '雷阵雨伴有冰雹', '雨夹雪', '小雨', '中雨', '大雨', '暴雨', '大暴雨', '特大暴雨', '阵雪', '小雪', '中雪', '大雪', '暴雪', '雾', '冻雨', '沙尘暴', '小到中雨', '中到大雨', '大到暴雨', '暴雨到大暴雨', '大暴雨到特大暴雨', '小到中雪', ' 中到大雪', '大到暴雪', '浮尘', '扬沙', '强沙尘暴', '霾'],
            "value|1-10": 10
          }
        ]
      })
    }
  },
  {
    type: 'post',
    url: '/host/cloud/trafficIncident/road',
    response: () => {
      return Mock.mock({
        "retCode": '0000_0',
        "retMessage": '执行成功',
        "data|10": [
          {
            "name|3-6": 'x',
            "value|100-2000": 100
          }
        ]
      })
    }
  },
  {
    type: 'post',
    url: '/host/cloud/trafficIncident/junction',
    response: () => {
      return Mock.mock({
        "retCode": '0000_0',
        "retMessage": '执行成功',
        "data|10": [
          {
            "name|3-6": 'x',
            "value|100-2000": 100
          }
        ]
      })
    }
  },
]